<?php

namespace app\admin\model\ykw;

use think\Model;
use app\admin\model\ykw\Subject;
use app\admin\model\ykw\Specialty;
use app\admin\model\ykw\Specialtys;
use app\admin\model\ykw\University;

class Volunteer extends Model
{


    //数据库
    protected $connection = 'database';
    // 表名
    protected $name = 'volunteer';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];

    public function subject()
    {
        return $this->belongsTo('Subject' )->setEagerlyType(0);
    }


    public function Specialty()
    {
        return $this->belongsTo('Specialty' )->setEagerlyType(0);
    }

    public function Specialtys()
    {
        return $this->belongsTo('Specialtys')->setEagerlyType(0);
    }

    public function University()
    {
        return $this->belongsTo('University' )->setEagerlyType(0);
    }




}
